<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="1" />-->
<link href="/Public/Home/css/sane.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="/Public/js/layer/layer.js" type="text/javascript"></script>
<link href="/Public/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/bootstrap.js" type="text/javascript"></script>
<script src="/Public/Home/js/bookRefer.js" type="text/javascript"></script>
<div class="c-main-left-content">
    <div class="con_title">
        <h3>借阅信息</h3>
    </div>
    <div class="title_tip">
        <img class="record_icon" src="/Public/img/record_01.jpg"/>
        <span class="record_news">请及时关注借阅消息，防止图书逾期归还。</span>
    </div>

    <div class="box_box">
        <div class="trad_message_info">
            <?php if(is_array($_getBorrowInfoById)): $i = 0; $__LIST__ = $_getBorrowInfoById;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="message_box" id="read_box_info">
                    <div class="mess_box_box">
                        <span>借阅时间：</span>
                        <span><?php echo (date('Y-m-d H:i:s',$vo['borrow_time'])); ?></span>
                        <span>-</span>
                        <span><?php echo (date('Y-m-d H:i:s',$vo['borrow_backtime'])); ?></span>
                    </div>
                    <div class="mess_info">
                        <?php if(is_array($_getAllUserInfo)): $i = 0; $__LIST__ = $_getAllUserInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fo): $mod = ($i % 2 );++$i; if($vo['u_id'] == $fo['u_id']): if(is_array($_getUserType)): $i = 0; $__LIST__ = $_getUserType;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$so): $mod = ($i % 2 );++$i; if($fo['u_type_id'] == $so['u_type_id']): ?><span><?php echo ($so['u_type_name']); ?>：</span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                <span><?php echo ($fo['real_name']); ?></span>
                                <span>身份证号码：</span>
                                <span><?php echo ($fo['real_number']); ?></span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                    <div class="mess_info" id="list_height_read">
                        <?php if(is_array($_bookShowInfo)): $i = 0; $__LIST__ = $_bookShowInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$zo): $mod = ($i % 2 );++$i; if($vo['book_id'] == $zo['book_id']): ?><span>条形码：</span>
                                <span><?php echo ($zo['book_barcode']); ?></span>
                                <span>《<?php echo ($zo['book_name']); ?>》</span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        <span>借阅状态：</span>
                        <?php if($vo['borrow_ifback'] == 2): ?><span style="color: red">未归还</span>
                            <?php else: ?>
                            <span style="color: #009f95">归还申请</span><?php endif; ?>
                    </div>
                    <div class="mess_input">
                        <?php if($vo['borrow_ifback'] == 2): ?><span class="courst box_mess box_mess1" date-id-read="<?php echo ($vo['borrow_id']); ?>">归还申请</span>
                            <input type="hidden" value="<?php echo U('Home/MyInfo/setBorrowIfback');?>" id="BorrowID"><?php endif; ?>
                        <?php if($vo['borrow_ifback'] == 3): ?><span class="box_mess box_mess2">申请中</span><?php endif; ?>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>